package com.cancer.common.util;

/**
 * WEB 静态常量类
 * 
 * @Company GeekPlus
 * @Project beetle
 * @since 1.0.0
 * @Author qiunan
 * @Date 2016年3月24日 下午3:21:39
 * @Description
 */
public class CommonUtil {

    /**
     * API返回model，code:0.代表本次访问成功
     */
    public static final Integer RETURN_CODE_ZERO = 0;

    /**
     * API返回model，code:1 代表本次访问失败
     */
    public static final Integer RETURN_CODE_ONE = 1;

    /**
     * API返回model，msg:success 表示本次访问成功
     */
    public static final String RETURN_MSG_SUCCESS = "success";
    
    /**
     * 数字-1
     */
    public static final Integer NUMBER_MINUS_ONE = -1;
    /**
     * 数字0
     */
    public static final Integer NUMBER_ZERO = 0;

    /**
     * 数字1
     */
    public static final Integer NUMBER_ONE = 1;

    /**
     * 数字2
     */
    public static final Integer NUMBER_TWO = 2;

    /**
     * 数字3
     */
    public static final Integer NUMBER_THREE = 3;

    /**
     * 数字4
     */
    public static final Integer NUMBER_FOUR = 4;

    /**
     * 数字5
     */
    public static final Integer NUMBER_FIVE = 5;

    /**
     * 数字6
     */
    public static final Integer NUMBER_SIX = 6;

    /**
     * 数字7
     */
    public static final Integer NUMBER_SEVEN = 7;

    /**
     * 数字8
     */
    public static final Integer NUMBER_EIGHT = 8;

    /**
     * 数字9
     */
    public static final Integer NUMBER_NINE = 9;

    /**
     * 数字10
     */
    public static final Integer NUMBER_TEN = 10;

    /**
     * 分页VO，每页大小：10
     */
    public static final Integer PAGEBEAN_PAGESIZE_TEN = 10;
    
    /**
     * 一级类型的父ID，-1
     */
    public static final String TOP_NODE_PARENT_ID = "-1";
    
    /**
     * 文件上传路径·
     */
    public static final String FILE_UPLOAD_PATH = "/beetles/upload/file/";
    /**
     * SKU导入模板路径
     */
    public static final String SKU_EXCEL_TEMPLATE_PATH = "/beetles/template/";
    
    /**
     * SKU导入模板名称
     */
    public static final String SKU_EXCEL_TEMPLATE_NAME = "skuImport.xlsx";
    
    public static final String CONFIG_XML_PATH = "com/geekplus/beetle/excel/";
    
    /**
     * 到货通知单导入模板名称
     */
    public static final String ASN_EXCEL_TEMPLATE_NAME = "asnImport.xlsx";
    
    /**
     * 规则相关的模板下载路径
     */
    public static final String RULES_EXCEL_TEMPLATE_PATH = "templates/rules/";
    
    
    /**
     * 条码解析规则导入模板名称
     */
    public static final String SKU_PARSER_EXCEL_TEMPLATE_NAME = "skuParserImport.xlsx";

    /**
     * 库内操作导入模板路径
     */
    public static final String WIO_EXCEL_TEMPLATE_PATH = "templates/wio/";
    
    /**
     * 批次调整单导入模板名称
     */
    public static final String BATCH_ADJUSTMENT_EXCEL_TEMPLATE_NAME = "batchAdjustmentImport.xlsx";
    
    /**
     * 到货通知单导入模板名称
     */
    public static final String RECONCILIATION_EXCEL_TEMPLATE_NAME = "reconciliationImport.xlsx";
    
    
    /**
     * 到货通知单状态：创建——————50
     */
    public static final int ASN_STATUS_CREATE = 50;
    
    /**
     * 到货通知单状态：取消——————51
     */
    public static final int ASN_STATUS_CANCEL = 51;
    
    /**
     * 到货通知单状态：收货中——————80
     */
    public static final int ASN_STATUS_ENTRY = 80;
    
    /**
     * 到货通知单状态：收货完成——————81
     */
    public static final int ASN_STATUS_ENTRY_FINISH = 81;
    
    /**
     * 到货通知单状态：上架中——————110（对应的原流程状态是分配到工作站）
     */
    public static final int ASN_STATUS_REPLENISHING = 110;
    
    /**
     * 到货通知单状态：上架完成——————133（对应的原流程状态是完成上架）
     */
    public static final int ASN_STATUS_REPLENISH_FINISH = 133;
    
    /**
     * 到货通知单状态：挂单——————230（对应的原流程状态是上架异常）
     */
    public static final int ASN_STATUS_REPLENISH_ERROR = 230;
    
    /**
     * 过滤字符串的正则表达式
     */
    public static final String CHARACTER_REGEX= "[^-@&&[\\s\\W]]";
  
    public static final short EXCEL_HEAD_FONT_SIZE = 11 ;
    
    public static final double SHELF_SELECT_BOUNDARY_ZERO_PERCENT = 0;
    
    public static final double SHELF_SELECT_BOUNDARY_TEN_PERCENT = 0.1;
    
    public static final double SHELF_SELECT_BOUNDARY_TWENTY_PERCENT = 0.2;
    
    public static final double SHELF_SELECT_BOUNDARY_THIRTY_PERCENT = 0.3;
    
    public static final double SHELF_SELECT_BOUNDARY_FORTY_PERCENT = 0.4;
    
    public static final double SHELF_SELECT_BOUNDARY_FIFTY_PERCENT = 0.5;
    
    public static final double SHELF_SELECT_BOUNDARY_SIXTY_PERCENT = 0.6;
    
    public static final double SHELF_SELECT_BOUNDARY_SEVENTY_PERCENT = 0.7;
    
    public static final double SHELF_SELECT_BOUNDARY_EIGHTY_PERCENT = 0.8;
    
    public static final double SHELF_SELECT_BOUNDARY_NINETY_PERCENT = 0.9;
    
    public static final double SHELF_SELECT_BOUNDARY_HUNDRED_PERCENT = 1;
    
  //rf 拣货互斥锁
  	public static final Integer PICK_RF_LOCK = new Integer(1);
    
}
